﻿using System.Collections;

namespace CSharpPro.properties._1028;

public class Demo
{
    public void TestPrint()
    {
        ArrayList arrayList = new ArrayList();
        arrayList.Add(1);
        arrayList.Add(1.5);
        arrayList.Add("2");
        foreach (object o in arrayList)
        {
            Console.Write(o + "\t");
        }
        List<int> list = new List<int>();
        list.Add(1);
        list.Add(2);
        List<Student>  students = new List<Student>();
        students.Add(new Student());
        students.Add(new Student());
        students.Add(new Student());
        students.Add(new Student());
        Dictionary<string,object> dic = new Dictionary<string, object>();
        
        //Hashtable ht = new Hashtable();
        Stack<int> stack = new Stack<int>();
        
    }
}